<div class="content-box"><!-- Start Content Box -->
				
	<div class="content-box-header">
		
		<h3>Editar Opciones</h3>
				
		<div class="clear"></div>
		
	</div> <!-- End .content-box-header -->
	
	<div class="content-box-content">
					
	<?php echo form_open($this->uri->uri_string()); ?>
		
		
		
		<?php if(isset($params)): ?>
		
		<?php $total_fields = count($params); ?>
		<?php $actual_pos = 0;?>
		<?php $middle_fields = ceil($total_fields / 2); ?>
		
		<?php if($total_fields > 5): ?>
		<fieldset class="column-left-separator"> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
		<?php else: ?>
		<fieldset>
		<?php endif;?>
		
		<?php foreach($params as $param_key=>$param_info): ?>
		
		<p>
			<?php $this->load->view($template_path . 'utils/autogenerate_form_fields', array("field_name" => $param_key, "field" => $param_info)); ?>
		</p>
		
		<?php $actual_pos ++;?>
		<?php if($total_fields > 5 && $middle_fields == $actual_pos): ?>
			</fieldset>
			<fieldset class="column-right">
		<?php endif; ?>
		
		<?php endforeach; ?>
		
		
		<?php else: ?>
		
		No existen configuraciones
		
		<?php endif; ?>
		
		</fieldset>
		
		<div class="clear"></div>
		
		<p class="align-right">
			<input class="button" type="submit" name="submit" value="Editar Opciones" />
		</p>
		
		<div class="clear" />
	
	<?php echo form_close(); ?>
	</div>
		
</div>